Optimal. Leaf size=90 \[ -\frac {b d^3 n}{16 x^4}-\frac {b d^2 e n}{3 x^3}-\frac {3 b d e^2 n}{4 x^2}-\frac {b e^3 n}{x}+\frac {b e^4 n \log (x)}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 90, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {37, 2372, 12,
45} \begin {gather*} -\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}-\frac {b d^3 n}{16 x^4}-\frac {b d^2 e n}{3 x^3}+\frac {b e^4 n \log (x)}{4 d}-\frac {3 b d e^2 n}{4 x^2}-\frac {b e^3 n}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 45
Rule 2372
Rubi steps
\begin {align*} \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx &=-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}-(b n) \int -\frac {(d+e x)^4}{4 d x^5} \, dx\\ &=-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}+\frac {(b n) \int \frac {(d+e x)^4}{x^5} \, dx}{4 d}\\ &=-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}+\frac {(b n) \int \left (\frac {d^4}{x^5}+\frac {4 d^3 e}{x^4}+\frac {6 d^2 e^2}{x^3}+\frac {4 d e^3}{x^2}+\frac {e^4}{x}\right ) \, dx}{4 d}\\ &=-\frac {b d^3 n}{16 x^4}-\frac {b d^2 e n}{3 x^3}-\frac {3 b d e^2 n}{4 x^2}-\frac {b e^3 n}{x}+\frac {b e^4 n \log (x)}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 109, normalized size = 1.21 \begin {gather*} -\frac {12 a \left (d^3+4 d^2 e x+6 d e^2 x^2+4 e^3 x^3\right )+b n \left (3 d^3+16 d^2 e x+36 d e^2 x^2+48 e^3 x^3\right )+12 b \left (d^3+4 d^2 e x+6 d e^2 x^2+4 e^3 x^3\right ) \log \left (c x^n\right )}{48 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.13, size = 569, normalized size = 6.32
method | result | size |
risch | \(-\frac {b \left (4 e^{3} x^{3}+6 d \,e^{2} x^{2}+4 d^{2} e x +d^{3}\right ) \ln \left (x^{n}\right )}{4 x^{4}}-\frac {24 i \pi b \,d^{2} e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+24 i \pi b \,d^{2} e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+36 i \pi b d \,e^{2} x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+48 \ln \left (c \right ) b \,e^{3} x^{3}-24 i \pi b \,e^{3} x^{3} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-36 i \pi b d \,e^{2} x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )-24 i \pi b \,d^{2} e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+12 a \,d^{3}+72 a d \,e^{2} x^{2}+48 a \,d^{2} e x +48 a \,e^{3} x^{3}+3 b \,d^{3} n +12 d^{3} b \ln \left (c \right )+72 \ln \left (c \right ) b d \,e^{2} x^{2}+48 \ln \left (c \right ) b \,d^{2} e x +36 i \pi b d \,e^{2} x^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+48 b \,e^{3} n \,x^{3}-24 i \pi b \,d^{2} e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+24 i \pi b \,e^{3} x^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+16 b \,d^{2} e n x +36 b d \,e^{2} n \,x^{2}-24 i \pi b \,e^{3} x^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+6 i \pi b \,d^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+6 i \pi b \,d^{3} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-6 i \pi b \,d^{3} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )-6 i \pi b \,d^{3} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+24 i \pi b \,e^{3} x^{3} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-36 i \pi b d \,e^{2} x^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{48 x^{4}}\) | \(569\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 140, normalized size = 1.56 \begin {gather*} -\frac {b n e^{3}}{x} - \frac {3 \, b d n e^{2}}{4 \, x^{2}} - \frac {b d^{2} n e}{3 \, x^{3}} - \frac {b e^{3} \log \left (c x^{n}\right )}{x} - \frac {3 \, b d e^{2} \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {b d^{2} e \log \left (c x^{n}\right )}{x^{3}} - \frac {b d^{3} n}{16 \, x^{4}} - \frac {a e^{3}}{x} - \frac {3 \, a d e^{2}}{2 \, x^{2}} - \frac {a d^{2} e}{x^{3}} - \frac {b d^{3} \log \left (c x^{n}\right )}{4 \, x^{4}} - \frac {a d^{3}}{4 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 141, normalized size = 1.57 \begin {gather*} -\frac {3 \, b d^{3} n + 48 \, {\left (b n + a\right )} x^{3} e^{3} + 12 \, a d^{3} + 36 \, {\left (b d n + 2 \, a d\right )} x^{2} e^{2} + 16 \, {\left (b d^{2} n + 3 \, a d^{2}\right )} x e + 12 \, {\left (4 \, b x^{3} e^{3} + 6 \, b d x^{2} e^{2} + 4 \, b d^{2} x e + b d^{3}\right )} \log \left (c\right ) + 12 \, {\left (4 \, b n x^{3} e^{3} + 6 \, b d n x^{2} e^{2} + 4 \, b d^{2} n x e + b d^{3} n\right )} \log \left (x\right )}{48 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.53, size = 158, normalized size = 1.76 \begin {gather*} - \frac {a d^{3}}{4 x^{4}} - \frac {a d^{2} e}{x^{3}} - \frac {3 a d e^{2}}{2 x^{2}} - \frac {a e^{3}}{x} - \frac {b d^{3} n}{16 x^{4}} - \frac {b d^{3} \log {\left (c x^{n} \right )}}{4 x^{4}} - \frac {b d^{2} e n}{3 x^{3}} - \frac {b d^{2} e \log {\left (c x^{n} \right )}}{x^{3}} - \frac {3 b d e^{2} n}{4 x^{2}} - \frac {3 b d e^{2} \log {\left (c x^{n} \right )}}{2 x^{2}} - \frac {b e^{3} n}{x} - \frac {b e^{3} \log {\left (c x^{n} \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.30, size = 158, normalized size = 1.76 \begin {gather*} -\frac {48 \, b n x^{3} e^{3} \log \left (x\right ) + 72 \, b d n x^{2} e^{2} \log \left (x\right ) + 48 \, b d^{2} n x e \log \left (x\right ) + 48 \, b n x^{3} e^{3} + 36 \, b d n x^{2} e^{2} + 16 \, b d^{2} n x e + 48 \, b x^{3} e^{3} \log \left (c\right ) + 72 \, b d x^{2} e^{2} \log \left (c\right ) + 48 \, b d^{2} x e \log \left (c\right ) + 12 \, b d^{3} n \log \left (x\right ) + 3 \, b d^{3} n + 48 \, a x^{3} e^{3} + 72 \, a d x^{2} e^{2} + 48 \, a d^{2} x e + 12 \, b d^{3} \log \left (c\right ) + 12 \, a d^{3}}{48 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.71, size = 118, normalized size = 1.31 \begin {gather*} -\frac {x^3\,\left (4\,a\,e^3+4\,b\,e^3\,n\right )+x\,\left (4\,a\,d^2\,e+\frac {4\,b\,d^2\,e\,n}{3}\right )+a\,d^3+x^2\,\left (6\,a\,d\,e^2+3\,b\,d\,e^2\,n\right )+\frac {b\,d^3\,n}{4}}{4\,x^4}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d^3}{4}+b\,d^2\,e\,x+\frac {3\,b\,d\,e^2\,x^2}{2}+b\,e^3\,x^3\right )}{x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________